import request from '@/utils/request'


export function queryEomsOrderstatisticsInfo() {
  return request({
    url: '/maintenance/queryEomsOrderstatisticsInfo',
    method: 'get'
  })
}

export function queryEomsOrderList(query) {
  return request({
    url: '/maintenance/queryEomsOrderList',
    method: 'get',
    params: query
  })
}


export function queryEomsOrderMaintenanceData() {
  return request({
    url: '/maintenance/queryEomsOrderMaintenanceData',
    method: 'get'
  })
}

export function importEomsOrder() {
  return request({
    url: '/maintenance/importEomsOrder',
    method: 'get'
  })
}

export function importAlarm() {
  return request({
    url: '/maintenance/importAlarm',
    method: 'get'
  })
}

export function calculateOrderResult() {
  return request({
    url: '/maintenance/calculateOrderResult',
    method: 'get'
  })
}

export function queryImportTaskList() {
  return request({
    url: '/maintenance/queryImportTaskList',
    method: 'get'
  })
}

export function exportTaskList(query) {
  return request({
    url: '/maintenance/exportTaskList',
    method: 'get',
    params: query
  })
}

export function queryEomsOrder(query) {
  return request({
    url: '/maintenance/queryEomsOrder',
    method: 'get',
    params: query
  })
}

export function updateEomsOrder(data) {
  return request({
    url: '/maintenance/updateEomsOrder',
    method: 'post',
    data: data
  })
}


export function queryRelatedAlarm(query) {
  return request({
    url: '/maintenance/queryRelatedAlarm',
    method: 'get',
    params: query
  })
}

export function queryRealTimeAlarm(query) {
  return request({
    url: '/maintenance/queryRealTimeAlarm',
    method: 'get',
    params: query
  })
}

export function queryRealTimeAlarmByAlarmId(query) {
  return request({
    url: '/maintenance/queryRealTimeAlarmByAlarmId',
    method: 'get',
    params: query
  })
}

export function queryMaintenanceAlarmStatistics() {
  return request({
    url: '/maintenance/queryMaintenanceAlarmStatistics',
    method: 'get'
  })
}

export function queryAlarmExcludeList(query) {
  return request({
    url: '/maintenance/queryAlarmExcludeList',
    method: 'get',
    params: query
  })
}

export function addAlarmExclude(data) {
  return request({
    url: '/maintenance/addAlarmExclude',
    method: 'post',
    data: data
  })
}

export function deleteAlarmExclude(data) {
  return request({
    url: '/maintenance/deleteAlarmExclude',
    method: 'post',
    data: data
  })
}

export function exitCauseSave(data) {
  return request({
    url: '/maintenance/exitCause',
    method: 'post',
    data: data
  })
}

export function queryNetworkScaleList(query) {
  return request({
    url: '/maintenance/queryNetworkScaleList',
    method: 'get',
    params: query
  })
}

export function updateNetworkScale(data) {
  return request({
    url: '/maintenance/updateNetworkScale',
    method: 'post',
    data: data
  })
}

export function queryExitAlarmTypeList(query) {
  return request({
    url: '/maintenance/queryExitAlarmTypeList',
    method: 'get',
    params: query
  })
}

export function queryExitSiteInfoList(query) {
  return request({
    url: '/maintenance/queryExitSiteInfoList',
    method: 'get',
    params: query
  })
}
export function queryExitSiteInfoList1(query) {
  return request({
    url: '/maintenance/queryExitSiteInfoList1',
    method: 'get',
    params: query
  })
}
export function queryExitSiteStatistics(query) {
  return request({
    url: '/maintenance/queryExitSiteStatistics',
    method: 'get',
    params: query
  })
}

// 无线超频管理
export function queryWirelessOverclockingList(query) {
  return request({
    url: '/maintenance/queryWirelessOverclockingList',
    // url: '/maintenance/queryExitSiteInfoList',
    method: 'get',
    params: query
  })
}

export function queryWirelessOverclockingCounty(query) {
  return request({
    url: '/maintenance/queryWirelessOverclockingCounty',
    // url: '/maintenance/queryExitSiteInfoList',
    method: 'get',
    params: query
  })
}

/**
 * 零流量小区管理
 */
// 零流量小区列表
export function queryCommunityList(query) {
  return request({
    url: '/maintenance/queryCommunityList',
    method: 'get',
    params: query
  })
}
// 逻辑站零流量清单
export function queryLogic4GList(query) {
  return request({
    url: '/maintenance/queryLogic4GList',
    method: 'get',
    params: query
  })
}

export function queryLogic5GList(query) {
  return request({
    url: '/maintenance/queryLogic5GList',
    method: 'get',
    params: query
  })
}
// 物理站零流量清单
export function queryPhysicsList(query) {
  return request({
    url: '/maintenance/queryPhysicsList',
    method: 'get',
    params: query
  })
}
export function queryPhysics4GList(query) {
  return request({
    url: '/maintenance/queryPhysics4GList',
    method: 'get',
    params: query
  })
}
export function queryPhysics5GList(query) {
  return request({
    url: '/maintenance/queryPhysics5GList',
    method: 'get',
    params: query
  })
}

export const queryRealTimeAlarmGisList = (params) => {
  return request({
    url: '/maintenance/queryRealTimeAlarmGisList',
    method: 'post',
    data: params
  })
}

export const addNotes = (params) => {
  return request({
    url: '/maintenance/addNotes',
    method: 'post',
    data: params
  })
}